package com.javayh.dao;

import com.javayh.entity.Role;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author Dylan Yang
 * @Title: RoleDao
 * @ProjectName lucky
 * @Description: TODO
 * @date 2018/10/217:06
 */
@Mapper
@Component
public interface RoleDao {

    /**
      * 新增角色信息
      * @author Dylan Yang
      */
    @Insert(value = "INSERT INTO u_role (name, type) " +
                    "VALUES (#{name},#{type});")
    int saveRole(Role role);

    /**
      * 修改角色信息
      * @author Dylan Yang
      */
    int modfiyRole(Role role);
}
